﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Warehouse.Infrstructre.Migrations
{
    /// <inheritdoc />
    public partial class 修改出库表字段增加客户id : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "VendorName",
                table: "OutShips",
                newName: "ClientName");

            migrationBuilder.RenameColumn(
                name: "VendorId",
                table: "OutShips",
                newName: "Ccontact");

            migrationBuilder.RenameColumn(
                name: "VendorContact",
                table: "OutShips",
                newName: "ClientCode");

            migrationBuilder.AddColumn<int>(
                name: "ClientId",
                table: "OutShips",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ClientId",
                table: "OutShips");

            migrationBuilder.RenameColumn(
                name: "ClientName",
                table: "OutShips",
                newName: "VendorName");

            migrationBuilder.RenameColumn(
                name: "ClientCode",
                table: "OutShips",
                newName: "VendorContact");

            migrationBuilder.RenameColumn(
                name: "Ccontact",
                table: "OutShips",
                newName: "VendorId");
        }
    }
}
